package com.hamster.crm.service;

import com.hamster.crm.pojo.User;
import com.hamster.crm.pojo.dto.DepartmentUserList;
import com.hamster.crm.util.PageResult;

import java.util.List;

/**
 * @author Tarry
 * @create 2019/12/28 8:35
 */
public interface UserService {

    //    根据账号phone查询user对象
    public User findUserByPhone(String phone);

    //    新增用户
    public void addUser(User user);

    //    获取用户列表
    public List<User> getUserList();


    List<DepartmentUserList> listUsersSelect();

    void updateUser(User user);

    void deleteUser(String id);

    PageResult<User> listSchemeResults(String phone, Integer currentPage, Integer pageSize);
}
